//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-02B
TN_Widget.CreateTable([['Memphis 901 FC vs. Pittsburgh Riverhounds','Autozone Park','Memphis, TN','Saturday','5/25/2024','7:30 PM','6163952','Memphis-901-FC-vs--Pittsburgh-Riverhounds-5-25-2024'],['Pittsburgh Riverhounds vs. Indy Eleven','Highmark Stadium - Pittsburgh','Pittsburgh, PA','Saturday','6/1/2024','7:00 PM','6163459','Pittsburgh-Riverhounds-vs--Indy-Eleven-6-1-2024'],['Charleston Battery vs. Pittsburgh Riverhounds','Patriots Point Soccer Complex','Mount Pleasant, SC','Saturday','6/8/2024','7:30 PM','6162806','Charleston-Battery-vs--Pittsburgh-Riverhounds-6-8-2024'],['Hartford Athletic FC vs. Pittsburgh Riverhounds','Trinity Health Stadium','Hartford, CT','Saturday','6/15/2024','7:00 PM','6162905','Hartford-Athletic-FC-vs--Pittsburgh-Riverhounds-6-15-2024'],['Pittsburgh Riverhounds vs. Louisville City FC','Highmark Stadium - Pittsburgh','Pittsburgh, PA','Wednesday','6/19/2024','7:00 PM','6163461','Pittsburgh-Riverhounds-vs--Louisville-City-FC-6-19-2024'],['North Carolina FC vs. Pittsburgh Riverhounds','WakeMed Soccer Park','Cary, NC','Saturday','6/22/2024','7:30 PM','6163492','North-Carolina-FC-vs--Pittsburgh-Riverhounds-6-22-2024'],['Las Vegas Lights FC vs. Pittsburgh Riverhounds','Cashman Field','Las Vegas, NV','Saturday','6/29/2024','7:30 PM','6163874','Las-Vegas-Lights-FC-vs--Pittsburgh-Riverhounds-6-29-2024'],['Pittsburgh Riverhounds vs. Monterey Bay FC','Highmark Stadium - Pittsburgh','Pittsburgh, PA','Saturday','7/6/2024','7:00 PM','6163464','Pittsburgh-Riverhounds-vs--Monterey-Bay-FC-7-6-2024'],['Pittsburgh Riverhounds vs. Oakland Roots SC','Highmark Stadium - Pittsburgh','Pittsburgh, PA','Saturday','7/13/2024','7:00 PM','6163466','Pittsburgh-Riverhounds-vs--Oakland-Roots-SC-7-13-2024'],['Pittsburgh Riverhounds vs. Hartford Athletic FC','Highmark Stadium - Pittsburgh','Pittsburgh, PA','Saturday','7/20/2024','7:00 PM','6163468','Pittsburgh-Riverhounds-vs--Hartford-Athletic-FC-7-20-2024'],['Pittsburgh Riverhounds vs. Loudoun United FC','Highmark Stadium - Pittsburgh','Pittsburgh, PA','Saturday','7/27/2024','7:00 PM','6163471','Pittsburgh-Riverhounds-vs--Loudoun-United-FC-7-27-2024'],['Sacramento Republic FC vs. Pittsburgh Riverhounds','Heart Health Park','Sacramento, CA','Saturday','8/3/2024','8:00 PM','6164484','Sacramento-Republic-FC-vs--Pittsburgh-Riverhounds-8-3-2024'],['Detroit City FC vs. Pittsburgh Riverhounds','Keyworth Stadium','Hamtramck, MI','Wednesday','8/7/2024','7:00 PM','6163073','Detroit-City-FC-vs--Pittsburgh-Riverhounds-8-7-2024'],['Pittsburgh Riverhounds vs. San Antonio FC','Highmark Stadium - Pittsburgh','Pittsburgh, PA','Saturday','8/10/2024','7:00 PM','6163473','Pittsburgh-Riverhounds-vs--San-Antonio-FC-8-10-2024'],['Pittsburgh Riverhounds vs. Colorado Springs Switchbacks FC','Highmark Stadium - Pittsburgh','Pittsburgh, PA','Saturday','8/17/2024','7:00 PM','6163478','Pittsburgh-Riverhounds-vs--Colorado-Springs-Switchbacks-FC-8-17-2024'],['Birmingham Legion FC vs. Pittsburgh Riverhounds','Protective Stadium','Birmingham, AL','Saturday','8/24/2024','6:30 PM','6163187','Birmingham-Legion-FC-vs--Pittsburgh-Riverhounds-8-24-2024'],['Indy Eleven vs. Pittsburgh Riverhounds','Carroll Stadium','Indianapolis, IN','Saturday','8/31/2024','7:00 PM','6163337','Indy-Eleven-vs--Pittsburgh-Riverhounds-8-31-2024'],['Pittsburgh Riverhounds vs. Rhode Island FC','Highmark Stadium - Pittsburgh','Pittsburgh, PA','Saturday','9/7/2024','7:00 PM','6163479','Pittsburgh-Riverhounds-vs--Rhode-Island-FC-9-7-2024'],['Tampa Bay Rowdies vs. Pittsburgh Riverhounds','Al Lang Stadium','St. Petersburg, FL','Saturday','9/14/2024','7:30 PM','6163372','Tampa-Bay-Rowdies-vs--Pittsburgh-Riverhounds-9-14-2024'],['Pittsburgh Riverhounds vs. Birmingham Legion FC','Highmark Stadium - Pittsburgh','Pittsburgh, PA','Saturday','9/28/2024','7:00 PM','6163480','Pittsburgh-Riverhounds-vs--Birmingham-Legion-FC-9-28-2024'],['Miami FC vs. Pittsburgh Riverhounds','FIU Football Stadium','Miami, FL','Saturday','10/5/2024','7:00 PM','6163472','Miami-FC-vs--Pittsburgh-Riverhounds-10-5-2024'],['Pittsburgh Riverhounds vs. Charleston Battery','Highmark Stadium - Pittsburgh','Pittsburgh, PA','Saturday','10/12/2024','7:00 PM','6163483','Pittsburgh-Riverhounds-vs--Charleston-Battery-10-12-2024'],['Loudoun United FC vs. Pittsburgh Riverhounds','Segra Field','Leesburg, VA','Saturday','10/19/2024','5:45 PM','6163390','Loudoun-United-FC-vs--Pittsburgh-Riverhounds-10-19-2024'],['Pittsburgh Riverhounds vs. El Paso Locomotive FC','Highmark Stadium - Pittsburgh','Pittsburgh, PA','Saturday','10/26/2024','7:00 PM','6163485','Pittsburgh-Riverhounds-vs--El-Paso-Locomotive-FC-10-26-2024']],'Pittsburgh Riverhounds','http://www.ticketnetwork.com/ticket/Pittsburgh-Riverhounds-events.aspx');